<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TTMath: ttmath::Conv Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ttmath_logo_for_doxygen_doc.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">TTMath
   &#160;<span id="projectnumber">0.9.4_prerelease_2019-07-31</span>
   </div>
   <div id="projectbrief">&nbsp;C++ bignum library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacettmath.html">ttmath</a></li><li class="navelem"><a class="el" href="structttmath_1_1_conv.html">Conv</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">ttmath::Conv Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a9398de71bf574351ca952566d2f6f602"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a9398de71bf574351ca952566d2f6f602">base</a></td></tr>
<tr class="separator:a9398de71bf574351ca952566d2f6f602"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2df433a7aa1269e9e88259c617606e9d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a2df433a7aa1269e9e88259c617606e9d">scient</a></td></tr>
<tr class="separator:a2df433a7aa1269e9e88259c617606e9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac79577f141c39adea40a9ab6842280e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#aac79577f141c39adea40a9ab6842280e">scient_from</a></td></tr>
<tr class="separator:aac79577f141c39adea40a9ab6842280e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10770c56eb68cce03240eaa8e87d224c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a10770c56eb68cce03240eaa8e87d224c">base_round</a></td></tr>
<tr class="separator:a10770c56eb68cce03240eaa8e87d224c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad855ed895ef81b4a248b02dd923154e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#ad855ed895ef81b4a248b02dd923154e7">round</a></td></tr>
<tr class="separator:ad855ed895ef81b4a248b02dd923154e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8091e5fbba450554994ba4babc115575"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a8091e5fbba450554994ba4babc115575">trim_zeroes</a></td></tr>
<tr class="separator:a8091e5fbba450554994ba4babc115575"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47f657fa1b7ff6c82cd82449207b55d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a47f657fa1b7ff6c82cd82449207b55d2">comma</a></td></tr>
<tr class="separator:a47f657fa1b7ff6c82cd82449207b55d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a694c0edf9a50188d7220ac5432d31b17"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a694c0edf9a50188d7220ac5432d31b17">comma2</a></td></tr>
<tr class="separator:a694c0edf9a50188d7220ac5432d31b17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4a67e7738466a8bafecbc0ab32853aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#ac4a67e7738466a8bafecbc0ab32853aa">group</a></td></tr>
<tr class="separator:ac4a67e7738466a8bafecbc0ab32853aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a240d7c41db018f7c821cf05522437087"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#a240d7c41db018f7c821cf05522437087">group_digits</a></td></tr>
<tr class="separator:a240d7c41db018f7c821cf05522437087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab70c8719875cf938add006d41e644757"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structttmath_1_1_conv.html#ab70c8719875cf938add006d41e644757">group_exp</a></td></tr>
<tr class="separator:ab70c8719875cf938add006d41e644757"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>this struct is used when converting to/from a string /temporarily only in <a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">Big::ToString()</a> and <a class="el" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">Big::FromString()</a>/ </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00407">407</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a9398de71bf574351ca952566d2f6f602"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9398de71bf574351ca952566d2f6f602">&#9670;&nbsp;</a></span>base</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ttmath::Conv::base</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>base (radix) on which the value will be shown (or read) default: 10 </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00413">413</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>, <a class="el" href="ttmathparser_8h_source.html#l01839">ttmath::Parser&lt; ValueType &gt;::ReadValue()</a>, <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03828">ttmath::Big&lt; exp, man &gt;::ToWString()</a>.</p>

</div>
</div>
<a id="a10770c56eb68cce03240eaa8e87d224c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10770c56eb68cce03240eaa8e87d224c">&#9670;&nbsp;</a></span>base_round</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ttmath::Conv::base_round</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>if 'base_round' is true and 'base' is different from 2, 4, 8, or 16 and the result value is not an integer then we make an additional rounding (after converting the last digit from the result is skipped) default: true</p>
<p>e.g. </p><pre class="fragment">Conv c;
c.base_round = false;
Big&lt;1, 1&gt; a = "0.1";                       // decimal input
std::cout &lt;&lt; a.ToString(c) &lt;&lt; std::endl;   // the result is: 0.099999999
</pre> 
<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00446">446</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

</div>
</div>
<a id="a47f657fa1b7ff6c82cd82449207b55d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47f657fa1b7ff6c82cd82449207b55d2">&#9670;&nbsp;</a></span>comma</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ttmath::Conv::comma</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the main comma operator (used when reading and writing) default is a dot '.' </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00477">477</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathparser_8h_source.html#l01839">ttmath::Parser&lt; ValueType &gt;::ReadValue()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<a id="a694c0edf9a50188d7220ac5432d31b17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a694c0edf9a50188d7220ac5432d31b17">&#9670;&nbsp;</a></span>comma2</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ttmath::Conv::comma2</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>additional comma operator (used only when reading) if you don't want it just set it to zero default is a comma ','</p>
<p>this allowes you to convert from a value: 123.45 as well as from 123,45 </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00488">488</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathparser_8h_source.html#l01839">ttmath::Parser&lt; ValueType &gt;::ReadValue()</a>.</p>

</div>
</div>
<a id="ac4a67e7738466a8bafecbc0ab32853aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4a67e7738466a8bafecbc0ab32853aa">&#9670;&nbsp;</a></span>group</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ttmath::Conv::group</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>it sets the character which is used for grouping if group=' ' then: 1234,56789 will be printed as: 1 234,567 89</p>
<p>if you don't want grouping just set it to zero (which is default) </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00497">497</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathparser_8h_source.html#l01839">ttmath::Parser&lt; ValueType &gt;::ReadValue()</a>.</p>

</div>
</div>
<a id="a240d7c41db018f7c821cf05522437087"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a240d7c41db018f7c821cf05522437087">&#9670;&nbsp;</a></span>group_digits</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ttmath::Conv::group_digits</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>how many digits should be grouped (it is used if 'group' is non zero) default: 3 </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00504">504</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

</div>
</div>
<a id="ab70c8719875cf938add006d41e644757"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab70c8719875cf938add006d41e644757">&#9670;&nbsp;</a></span>group_exp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ttmath::Conv::group_exp</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00509">509</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

</div>
</div>
<a id="ad855ed895ef81b4a248b02dd923154e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad855ed895ef81b4a248b02dd923154e7">&#9670;&nbsp;</a></span>round</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> ttmath::Conv::round</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>used only in <a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">Big::ToString()</a> tells how many digits after comma are possible default: -1 which means all digits are printed</p>
<p>set it to zero if you want integer value only</p>
<p>for example when the value is: 12.345678 and 'round' is 4 then the result will be 12.3457 (the last digit was rounded) </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00461">461</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<a id="a2df433a7aa1269e9e88259c617606e9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2df433a7aa1269e9e88259c617606e9d">&#9670;&nbsp;</a></span>scient</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ttmath::Conv::scient</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>used only in <a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">Big::ToString()</a> if true the value will be always shown in the scientific mode, e.g: 123e+30 default: false </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00421">421</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<a id="aac79577f141c39adea40a9ab6842280e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac79577f141c39adea40a9ab6842280e">&#9670;&nbsp;</a></span>scient_from</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> ttmath::Conv::scient_from</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>used only in <a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">Big::ToString()</a> if scient is false then the value will be printed in the scientific mode only if the exponent is greater than scien_from default: 15 </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00430">430</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<a id="a8091e5fbba450554994ba4babc115575"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8091e5fbba450554994ba4babc115575">&#9670;&nbsp;</a></span>trim_zeroes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ttmath::Conv::trim_zeroes</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>if true that not mattered digits in the mantissa will be cut off (zero characters at the end &ndash; after the comma operator) e.g. 1234,78000 will be: 1234,78 default: true </p>

<p class="definition">Definition at line <a class="el" href="ttmathtypes_8h_source.html#l00470">470</a> of file <a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="ttmathtypes_8h_source.html">ttmathtypes.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
